const koa = require("koa");
const app = new koa();
app.use(async ctx=>{
    ctx.cookies.set("name","fangzhang",{
        maxAge:1000*6,
        httpOnly:false
    })

    ctx.cookies.set("pw","123",{
        maxAge:1000*2,
        httpOnly:false
    })

    ctx.body = "hello cookies"
})
app.listen(8081)